home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 25
/
AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso
/
Updates
/
Datatypes
/
WarpJPEGdt
/
Install_WarpJPEG
next >
Wrap
Text File
|
2000-01-12
|
4KB
|
175 lines
; $VER: Install_WarpJPEG 1.1 (12.1.2000)
; by Oliver Roberts (oliver.roberts@iname.com)
(if (= (exists "Env:Language") 1)
(set @language (getenv "Language"))
)
;*****************
; English strings
;
(set #str-kick3 "You must be running Kickstart 3.0 or higher to use datatypes.")
(set #str-installdt "Installing Datatype")
(set #str-installclass "Installing WarpJPEG.datatype class")
(set #str-installdes "Installing Descriptor")
(set #str-wrongcpu "You must have at least a 68040 and PowerPC processor to use this datatype.")
(set #str-oldpicdt (cat
"WarpJPEG.datatype needs picture.datatype v43 or higher.\n\n"
"Such a datatype is supplied with AmigaOS 3.5, P96 and CyberGraphX."
))
(set #str-noppc (cat
"WarpJPEG.datatype requires a PowerPC processor and WarpUp Release "
"4 or higher."
))
(set #str-backupdesc (cat
"You already have a JPEG datatype descriptor installed. Would you "
"like to keep a backup for safe-keeping?\n\n(if this is your first "
"time installing WarpJPEG.datatype, you probably should)"
))
(set #str-backup "Backup")
(set #str-overwrite "Overwrite")
(set #str-backupdir "Where should the JPEG descriptor be backed up to?")
(set #str-backingup "Backing up files")
(set #str-reboot (cat
"You may need to reboot for the changes to take effect."
))
(set #str-backupjfifdir "Where should the JFIF descriptor(s) be backed up to?")
(set #str-backupjfif (cat
"You have a JFIF datatype descriptor(s) installed. These will need "
"to be removed in order for WarpJPEG.datatype to be used. "
"If you wish, these can be copied to another directory before they "
"are permanently deleted."
))
(set #str-erase "Erase")
(set #str-deldesc "Deleting DEVS:Datatypes/JFIF#?")
;**********************
; Compatibility checks
;
(set @default-dest "")
(set #cpu (database "cpu"))
(if (< (/ (getversion) 65536) 39)
(abort #str-kick3)
)
(if (NOT (OR (= #cpu "68040") (= #cpu "68060")))
(abort #str-wrongcpu)
)
(set #ppc 0)
(if (exists "LIBS:powerpc.library")
(
(set #ppcver (/ (getversion "LIBS:powerpc.library") 65536))
(if (>= #ppcver 15) (set #ppc 1))
)
)
(if (= #ppc 0)
(abort #str-noppc)
)
(set #picdt-ok 0)
(if (exists "SYS:Classes/Datatypes/picture.datatype")
(
(set #pdtver (/ (getversion "SYS:Classes/Datatypes/picture.datatype") 65536))
(if (>= #pdtver 43) (set #picdt-ok 1))
)
)
(if (= #picdt-ok 0)
(abort #str-oldpicdt)
)
;*************
; Here we go!
;
(welcome "")
(working #str-installdt)
(copylib
(help @copylib-help)
(prompt #str-installclass)
(source "Classes/Datatypes/WarpJPEG.datatype")
(dest "SYS:Classes/DataTypes")
(confirm)
)
(set #backupdir "SYS:Storage/Datatypes")
(if (exists "DEVS:Datatypes/JPEG")
(if (askbool
(prompt #str-backupdesc)
(help "")
(default 0)
(choices #str-backup #str-overwrite)
)
(
(set #backupdir
(askdir
(prompt #str-backupdir)
(help @askdir-help)
(default #backupdir)
)
)
(copyfiles
(help @copyfiles-help)
(prompt #str-backingup)
(source "DEVS:DataTypes/JPEG")
(dest #backupdir)
(infos)
(confirm)
)
)
)
)
(copyfiles
(help @copyfiles-help)
(prompt #str-installdes)
(source "Devs/DataTypes/JPEG")
(dest "DEVS:DataTypes")
(infos)
(confirm)
)
(if (exists "DEVS:Datatypes/JFIF")
(
(if (askbool
(prompt #str-backupjfif)
(help "")
(default 0)
(choices #str-backup #str-erase)
)
(
(set #backupdir
(askdir
(prompt #str-backupjfifdir)
(help @askdir-help)
(default #backupdir)
)
)
(copyfiles
(help @copyfiles-help)
(prompt #str-backingup)
(source "DEVS:DataTypes")
(pattern "JFIF#?")
(dest #backupdir)
(infos)
(files)
(confirm)
)
)
)
(delete "DEVS:Datatypes/JFIF#?"
(prompt #str-deldesc)
(help "")
(confirm)
(optional "force")
)
)
)
(run "C:AddDataTypes >NIL: REFRESH")
(exit #str-reboot)